<style type="text/css">
.storelogo img{width:3.2rem;height:3.2rem}
.merchgroup .store-star {padding:0.1rem 0 0.2rem 0;font-size:0.55rem;line-height:1rem}
.merchgroup .store-star img{height:0.66rem}
.star-on,.star-off{position:absolute;top:1rem;left:0;overflow:hidden}
.star-rate {margin-left:0.2rem;color:#19b955}
.store-distance{float:right;color:#999}
.store-moneylimit{font-size:0.55rem}
.delete{color: #bebebe;text-decoration:line-through;font-size:0.55rem}
.fui-picturew .item .vote-number{
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    padding: 0 10px;
    -webkit-border-bottom-right-radius: 5px;
    -moz-border-radius-bottomright: 5px;
    border-bottom-left-radius: 5px;
    height: 25px;
    line-height: 25px;
    background-color: #000;
    background-color: rgba(0,0,0,0.5);
    color: #FFF;
    text-align: center;
    font-size: 12px;
}
.fui-picturew .item .vote-like{
	float: right;
    width: 28px;
    height: 28px;
    background: #fff;
    line-height: 28px;
    color: #7800ff;
    font-size: 12px;
    text-align: center;
    border: 1px solid #7800ff;
    border-radius: 28px;
    position: absolute;
    bottom: -20px;
    right: 5px;
}
.voto-searchbar {margin:0 auto;margin-top:10px;width:94%;height:40px;border:#CCC 1px solid;border-radius:4px;background:#FFF}
.voto-searchbar .inputtxt {padding-left:2%;width:65%;height:38px;line-height:38px;border:0;font-size:14px}
.voto-searchbar .divsub {float:right;margin-top:5px;width:30%;height:30px;border-left:#CCC 1px solid;color:#999;text-align:center;font-size:15px;line-height:30px}
.num_box{position:relative;overflow:hidden;width:100%;}
.num_box .num_box_ul{overflow:hidden;padding:15px 0;width:100%;line-height:22px;background-color: #f9f9f9;
    display: block;
    border-bottom: 1px #EFEFEF solid;}
.num_box .num_box_ul li{float:left;width:33%;border-right:1px solid #CCC;list-style:none}
.num_box .num_box_ul li:last-child{border:none}
.num_box .num_box_ul li span{display:block;width:100%;color:#707070;text-align:center;font-size:14px;line-height:20px}
.num_box .num_box_ul li span.text{margin:0;padding:0;background-color:transparent;box-shadow:none;font-size:12px}
.num_box .join_us{display:block;margin:10px auto;width:94%;height:40px;border-radius:4px;background:#FF4238;text-align:center;line-height:40px}
.num_box .join_us a:link, .num_box .join_us a:visited{display:block;color:#FFF;text-decoration:none;font-size:18px}
.time-item {margin:0 auto;width:100%;text-align:center;}
.time-item strong{border:#CCC 1px solid;background:#FFF;color:#999;line-height:40px;font-size:14px;padding:5px 10px;margin:0 5px;border-radius:3px;box-shadow:1px 1px 1px rgba(0,0,0,0.1);}
.day{line-height:35px;color:#999;font-size:12px;}
.fe-floatright-bottom a {
    background-color: rgba(93,103,113,.6);
    height: 1rem;
    border-radius: 10px 0 0px 10px;
    line-height: 1rem;
    font-size: 12px;
}
.fe-floatright-bottom a .icon {
    color: #fff;
    font-size: 0.6rem;
    height: 0.6rem;
	line-height: 1rem;
    opacity: 1;
}
.unvuie{
    position: fixed;
    bottom: 40%;
    right: 10px;
    width: 40px;
    height: 40px;
    z-index: 999999;
}
.ecdde{
    width: 100%;
    
}
.fui-content{
    background: none!important;
}
.fui-page, .fui-page-group{
    background: none!important;
}
html{
    height: -webkit-fill-available;
}
body{
    background: url("/addons/jy_votels/resource/bjtpy.jpg") bottom center no-repeat;
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
}
.invo2{
        display: inline-block;
    float: right;
    background: #FB6C3C;
    color: white;
    padding: 0px 10px;
    border-radius: 9px;
    margin-top: 12px;
    margin-right: 10px;
    text-align: center;
}
.uv8i{
    width: 100%;
}
.nv9o{
    width: 30%;
    display: inline-table;
    margin-left: 10px;
}
.unvur{
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    background: #F6FEFF;
}
.unvye{
  width: 20%;
}
.water-2{
    background: none;
}
.headinfo{
    background: none;
}
.num_box_ul{
    width: 90%!important;
    margin: 0 auto!important;
    background-color: rgba(221,228,229,.7)!important;
    border-radius: 10px;
}
.num_box_ul li .ng-binding{
 color: black!important; 
 font-size: 18px!important;
 font-weight: bold;
}
.num_box_ul li .text1{
 color: black!important;   
 font-size: 14px!important;
 font-weight: initial!important;
 margin-top: 5px;
}
.time-item {
    
    width: 90%!important;
    margin: 0 auto!important;
    background-color: rgba(221,228,229,.7)!important;
    border-radius: 10px;
    margin-top: 20px!important;
}
.day{
    font-size: 15px!important;
    color: black!important;
    padding-top: 5px;
}

.time-item strong{
    background: none!important;
    font-size: 15px!important;
    color: black!important;
    border: none!important;
    box-shadow: none!important;
}
.num_box .join_us{
        background: #A9B9C9!important;
        width: 90%!important;
        margin-top: 20px!important;
}
.uyivi {
     position: absolute;
    background: #fff;
    width: 55px;
    height: 20px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    left: 50%;
    bottom: -1px;
    transform: translate(-50%,0);
}
.nvuio9 {
    background: #fff;
    text-align: center;
    padding-top: 8px;
    line-height: 26px;
}
.vgbds{
    color: #A0A0A0;
    padding-bottom: 8px;
}
.fui-page-current{
    overflow: auto!important;
}
.ivnueq{
    line-height: 1rem;
}
.fe-floatright-bottom {
    right: 0;
}
</style>
<div class="fui-page order-create-page fui-page-current ubvim">
	<div class="fui-content" style="background:#fff">
	   <div ng-include="sys_html('_hdps')"></div>
	   <div ng-include="sys_html('_bankuai1')"></div>
		<div >
			<div class="headinfo" >
				<div class="fui-title-c" style="width:100%;height:100%">
					<div class="subtitle" style="font-size:16px;color:black">{{pagedata.reply.title}}</div>
					<div class="subtitle" style="font-size:12px;color:black;padding-bottom:20px"><span>{{pagedata.reply.infomsg || '该项目还没有添加项目描述！'}}</span></div>
				</div>
			</div>
		</div>
		<div class="num_box">
			<ul class="num_box_ul">
				<li> <span>{{pagedata.sum}}</span><span class="text1"> 已发布</span></li>
				<li> <span>{{pagedata.nums || 0}}</span><span class="text1"> 累计{{pagedata.reply.type==1?'点赞':'投票'}}</span></li>
				<li> <span>{{pagedata.look || 0}}</span><span class="text1"> 访问量</span></li>
			</ul>
			<div ng-if="pagedata.endstatus ==1 || pagedata.endstatus ==0" class="time-item" ng-init="tool.time_down(pagedata.reply.downtime)">
				<div ng-if="pagedata.endstatus ==1" class="day">活动结束倒计时</div>
				<div ng-if="pagedata.endstatus ==0" class="day">活动开始倒计时</div>
				<strong id="day_show">{{pagedata.reply.downtime.day}}天</strong>
				<strong id="hour_show"><s id="h"></s>{{pagedata.reply.downtime.hour}}时</strong>
				<strong id="minute_show"><s></s>{{pagedata.reply.downtime.minute}}分</strong>
				<strong id="second_show"><s></s>{{pagedata.reply.downtime.second}}秒</strong>
			</div>
			<span ng-if="pagedata.endstatus ==1 && pagedata.reply.nofabu !=1">
				<div class="join_us"><a href="javascript:;" ng-click="access_json('jy_vote/upopus//rid='+pagedata.reply.id)">我要发布</a></div>
			</span>
			<span ng-if="pagedata.endstatus ==0">
				<div class="join_us disabled"><a >还没开始</a></div>
			</span>
			<span ng-if="pagedata.endstatus ==2">
				<div class="join_us disabled"><a >已结束发布</a></div>
			</span>
		</div>
		<div class="voto-searchbar clearfix">
		  <input id="searchsub" type="text"  value="" ng-model="pagedata.params.keyword"  placeholder="请输入编号或姓名" class="inputtxt">
		  <div class="divsub" ng-click="tool.get_list('jy_vote/index/getlist/rid='+pagedata.rid+'&keyword='+pagedata.params.keyword,true);">搜&nbsp;索</div>
		</div>
		<div class="fui-picturew row-2"  style="margin-top:0.7rem;padding:0.3rem">
                <div ng-repeat="item in pagedata.list" class="item" style="margin-bottom:0.5rem">
                    <div style="margin: 0 5px;box-shadow: 0 1px 1px #ccc;">
						<div href="javascript:;" ng-click="access_json('jy_votels/o_detail/main/id='+item.id)"  class="radiustop image" style="width:100%;height:150px;background:url('{{tomedia(item.thumb) || '../core/resource/images/nopic.jpg'}}') no-repeat 50%;background-size: cover;">
							<div class="uyivi">
							    {{item.id}}
							</div>
						</div>
						<div class="nvuio9">
						 <div class="rete overflow-h">{{item.title || '作品名称'}}</div> 
						 <div class="vgbds">{{item.votenums || 0}}票</div>
						</div>
						<div class="uvklpe">
						    <div class="btn-footer" ng-if="pagedata.reply.type==0">
									<div ng-if="pagedata.reply.is_votemore==1" class="b-left" ng-click="pagedata.toogle_select(item.id);" style="width:100%;padding:5px;border-bottom-left-radius:0;background:#2B4937;border-radius: 0 0 5px 5px;">{{pagedata.select[item.id]==1?'已选择':'点击投票'}}</div>
									<div ng-if="pagedata.reply.is_votemore!=1" class="b-left" href="javascript:;" ng-click="access_json('jy_votels/o_detail/main/id='+item.id)" style="width:100%;padding:5px;border-bottom-left-radius:0;background:#2B4937;border-radius: 0 0 5px 5px;">点击投票</div>
									
							</div>
							<div class="btn-footer" ng-if="pagedata.reply.type!=0 && item.plugin!='jy_weishop'">
									<div ng-if="pagedata.reply.is_votemore==1" class="b-left" ng-click="pagedata.toogle_select(item.id);">{{pagedata.select[item.id]==1?'已选择':'点赞'}}</div>
									<div ng-if="pagedata.reply.is_votemore!=1" class="b-left" href="javascript:;" ng-click="access_json('jy_votels/o_detail/main/id='+item.id)" style="width:50%;padding:5px;border-bottom-left-radius:0">投票</div>
									<div class="b-right"  style="width:50%;padding:5px;border-bottom-right-radius:0">{{item.likes || 0}}赞</div>
							</div>
						</div>
					</div>
				</div>
		</div>
		<div ng-show="pagedata.loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
		<div class="fe-floatright-bottom right" style="bottom:60px;">
			<a href="javascript:;" ng-click="access_json('jy_vote/ranking//id='+pagedata.reply.id)">
				<!--<i class="icon jinyunicon icon-paixing" ></i>-->
				<div class="ivnueq" >排行</div>
			</a>
			
		</div>
		<div class="fe-floatright-bottom right" style="bottom:120px;">
			<a href="javascript:;" onclick="$('#jiangpin_descshow').modal();">
				<!--<i class="icon jinyunicon icon-liwu"></i>-->
				<div class="ivnueq" >奖品</div>
			</a>
		</div>
		<div class="fe-floatright-bottom right" style="bottom:180px;">
			<a href="javascript:;" onclick="$('#rulesshow').modal();">
				<!--<i class="icon jinyunicon icon-calendar"></i>-->
				<div class="ivnueq" >规则</div>
			</a>
			
		</div>
		<div class="fe-floatright-bottom right" style="bottom:240px;">
			<a href="javascript:;" onclick="$('#gonggaoshow').modal();">
				<!--<i class="icon jinyunicon icon-gonggao"></i>-->
				<div class="ivnueq" >公告</div>
			</a>			
		</div>
	</div>
</div>
<div class="fui-navbar-tip" ng-if="pagedata.isselect>0" style="color:#fff;bottom:3.5rem;background:none;">
	<div class="bold" ng-click="pagedata.setvote();" style="font-size:0.7rem;line-height:2rem;margin:auto;width:5rem; background-color:rgba(43,73,55,0.8);border-radius:2rem;">确认投票</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<div id="gonggaoshow"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div  class="modal-dialog" style="top:10%">
	<div class="modal-content" style="border-radius: 4px;padding:6px">
			<button style="margin-right:10px" aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
			<div class="container" style="max-height:380px;overflow-y:auto;margin-bottom:20px;margin-top:20px">
				<div class="box">
					<div class="title">
						<h4 style='"Microsoft Yahei",Tahoma;text-align:center'>活动公告 <span>REPLY RULES </span></h4>	
					</div>
					<div class="editbox" ng-bind-html="trust(pagedata.reply.gonggao)">
					</div>
				</div>
			</div>
	</div>
</div>
</div>
<div id="rulesshow"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div  class="modal-dialog" style="top:10%">
	<div class="modal-content" style="border-radius: 4px;padding:6px">
			<button style="margin-right:10px" aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
			<div class="container" style="max-height:380px;overflow-y:auto;margin-bottom:20px;margin-top:20px">
				<div class="box">
					<div class="title">
						<h4 style='"Microsoft Yahei",Tahoma;text-align:center'>活动规则 <span>REPLY RULES </span></h4>	
					</div>
					<div class="editbox" ng-bind-html="trust(pagedata.reply.rules)">
					</div>
				</div>
			</div>
	</div>
</div>
</div>
<div id="jiangpin_descshow"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div  class="modal-dialog" style="top:10%">
	<div class="modal-content" style="border-radius: 4px;padding:6px">
			<button style="margin-right:10px" aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
			<div class="container" style="max-height:380px;overflow-y:auto;margin-bottom:20px;margin-top:20px">
				<div class="box">
					<div class="title">
						<h4 style='"Microsoft Yahei",Tahoma;text-align:center'>奖品介绍 <span>REPLY DESC </span></h4>	
					</div>
					<div class="editbox" ng-bind-html="trust(pagedata.reply.jiangpin_desc)">
					</div>
				</div>
			</div>
	</div>
</div>
</div>
<script>
scope.loading = true;  //状态标记
scope.isnodata = false;
scope.pagedata.list =[];
scope.pagedata.isselect=0
//滚动加载
scope.pagedata.params.keyword = ''
scope.tool.get_list('jy_vote/index/getlist/rid='+scope.pagedata.rid,true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_vote/index/getlist/rid='+scope.pagedata.rid+'&keyword='+scope.pagedata.params.keyword);
}
//选择
scope.pagedata.toogle_select=function(id){
	if(scope.pagedata.isout_onlinetime==1){
		scope.message(scope.pagedata.novotetitle,'error');
		return false
	}
	if(scope.pagedata.isselect >= scope.pagedata.reply.lastdairyvote){
		scope.message('当天剩余可投票:'+scope.pagedata.reply.lastdairyvote+'人!','error');
		return false
	}
	var select=scope.pagedata.select;
	select[id]=select[id]==1?0:1;
	if(select[id]==1){
		scope.pagedata.isselect ++
	}else{
		scope.pagedata.isselect --
	}
	scope.pagedata.select=select;
	scope.$evalAsync();
}
//投票
scope.pagedata.setvote=function(){
	scope.post_json('jy_vote/r_detail/setvote/rid='+scope.pagedata.reply.id,scope.pagedata.select,function(res){
			if(res){
				scope.message('投票成功!','','jy_vote/r_detail//id='+scope.pagedata.reply.id);
			}else{
				scope.message(res);
			}
		
	});
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>
